package com.anche.cywebnew.Service.systemManager;

import com.anche.cywebnew.DTO.SelectDTO;
import com.anche.cywebnew.Pojo.systemManager.SysOrganization;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface OrganService {

    List<SysOrganization> getOrganList(Map<String, Object> map, List<String> cyqxhs);

    Page<SysOrganization> getOrganListPage(int page, int limit, SysOrganization sysOrganization);

    void updateOrgan(SysOrganization sysOrganization);

    void addOrgan(SysOrganization sysOrganization);

    void delOrganByCyqxh(String id);

    List<Object> getTreeOrganization(String pid);

    String getNameByCyqxh(String cyqxh);

    /**
     * 根据cyqxh获取该查验区以及以下的查验区序号
     *
     * @param cyqxh
     * @return
     */
    public List<String> getListByCyqxh(String cyqxh);

    /**
     * 根据cyqxh获取查验区信息
     * @param cyqxh
     * @return
     */
    public SysOrganization getOneByCyqxh(String cyqxh);

}
